package com.errands.cn.mapper;

import com.errands.cn.entity.OrderReceiving;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface OrderReceivingMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderReceiving record);

    int insertSelective(OrderReceiving record);

    OrderReceiving selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderReceiving record);

    int updateByPrimaryKey(OrderReceiving record);

    List<OrderReceiving> selectByState(@Param("state") Integer state,@Param("uid") Integer uid);

    OrderReceiving selectByoId(@Param("oId") String oId);

}